Skip to content

Instead of resetting the database after importing, pass through makeSelected = false#2626

Merged
robertbrignull merged 1 commit intomainfrom
robertbrignull/data-make-selected
Jul 21, 2023
Merged

Instead of resetting the database after importing, pass through makeSelected = false#2626
robertbrignull merged 1 commit intomainfrom
robertbrignull/data-make-selected

Conversation

@robertbrignull
Copy link
Copy Markdown
Contributor

For "model from source" and "model dependency" we were importing the new database, setting it as the current database, and then resetting the current database back to what it was before. Instead we can pass through makeSelected = false all the way to openDatabase and therefore not have to remember and reset the current database.

Needs some testing for edge cases, but it seems to work for me.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@robertbrignull robertbrignull requested a review from a team as a code owner July 21, 2023 11:52
Copy link
Copy Markdown
Contributor

@shati-patel shati-patel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎈

Needs some testing for edge cases, but it seems to work for me.

Anything in particular? I did some testing, but definitely haven't covered every case!

@robertbrignull
Copy link
Copy Markdown
Contributor Author

Anything in particular? I did some testing, but definitely haven't covered every case!

Nothing in particular, just a bit more than I did. But if you've done it a couple of times and I did it a bit then I think that's enough to show it's working as well as it was before.

@robertbrignull robertbrignull merged commit 0617e3e into main Jul 21, 2023
@robertbrignull robertbrignull deleted the robertbrignull/data-make-selected branch July 21, 2023 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants